package com.geodroid.common.graphics;


import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.ShapeDrawable;

public class Graphics2D {
	
	private static final String TAG = "Graphics2D";
	
	public Canvas canvas ; 
	public Paint paint ;
	
	// The gesture threshold expressed in dp

	
	/**
	 * @param canvas
	 * @param paint
	 */
	public Graphics2D(Canvas canvas, Paint paint) {
		super();
		this.canvas = canvas; 
		this.paint = paint;
	}
	public void setPaint(Color selColor) {
		// TODO Auto-generated method stub
		
	} 
	public void fill() {
		// TODO Auto-generated method stub
		
	}
	public void drawPoint(ShapeDrawable shape) {
		shape.draw(canvas) ;
	}
	
	public void drawPoint(float x, float y,float width, float height) {

		canvas.drawCircle(x, y, width, paint) ;
	}
	
	public void drawSegment(float startX, float startY, float stopX, float stopY) {
		canvas.drawLine(startX, startY, stopX, stopY, paint) ;
	}
	/**
	 * @return the canvas
	 */
	public Canvas getCanvas() {
		return canvas;
	}
	/**
	 * @param canvas the canvas to set
	 */
	public void setCanvas(Canvas canvas) {
		this.canvas = canvas;
	}
	/**
	 * @return the paint
	 */
	public Paint getPaint() {
		return paint;
	}
	/**
	 * @param paint the paint to set
	 */
	public void setPaint(GeoPaint paint) {
		this.paint = paint;
	} 

	
	  


}
